package com.alibaba.citrus.cr.platform.enhance.functions.diff.sap.processor;

import javax.annotation.Resource;

import com.alibaba.citrus.cr.platform.enhance.facade.service.diff.common.DiffCheckRequest;
import com.alibaba.citrus.cr.platform.enhance.functions.diff.common.constant.DiffStrategyRouteDict;
import com.alibaba.citrus.cr.platform.enhance.functions.diff.common.router.DiffCheckProcessor;
import com.alibaba.citrus.cr.platform.enhance.functions.diff.common.template.OneDiffOneTemplate;
import com.alibaba.lattice2.epoch.sdk.model.Result;

import org.springframework.stereotype.Component;

/**
 * @author: qiaojiange
 * @create: 2022/01/24
 * @Description sap017和交货主单进行对账
 */
@Component
public class Sap017SdoDiffConsignmentOrderProcessor extends DiffCheckProcessor {

    /**
     * 一对一对账模板
     */
    @Resource
    private OneDiffOneTemplate oneDiffOneTemplate;

    @Override
    public String obtainStrategyRoute() {
        return DiffStrategyRouteDict.SAP017_DIFF_CONSIGNMENT_ORDER.getStrategyCode();
    }

    @Override
    public Result<String> diff(DiffCheckRequest diffCheckRequest)  {
       return super.diff(diffCheckRequest,oneDiffOneTemplate);
    }
}
